<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perlamiga - Perl under AmigaOS 4.1 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perlamiga">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlamiga.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perlamiga">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perlamiga">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perlamiga">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perlamiga">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perlamiga">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perlamiga">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perlamiga">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perlamiga">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perlamiga">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perlamiga">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perlamiga">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perlamiga">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perlamiga">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perlamiga">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perlamiga">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perlamiga">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perlamiga">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perlamiga">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perlamiga">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perlamiga">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perlamiga">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perlamiga">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perlamiga">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perlamiga">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perlamiga">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perlamiga">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perlamiga">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perlamiga">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perlamiga">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perlamiga">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perlamiga">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perlamiga">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perlamiga">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perlamiga">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perlamiga">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perlamiga">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perlamiga">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perlamiga">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perlamiga">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perlamiga">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perlamiga">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perlamiga">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perlamiga">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perlamiga">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perlamiga">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perlamiga">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perlamiga">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perlamiga">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perlamiga">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perlamiga">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perlamiga">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perlamiga">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perlamiga">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perlamiga">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perlamiga">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perlamiga">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perlamiga">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perlamiga">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perlamiga">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perlamiga">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perlamiga">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perlamiga">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perlamiga">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perlamiga">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perlamiga">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perlamiga">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perlamiga">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perlamiga">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perlamiga">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perlamiga">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perlamiga">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perlamiga">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perlamiga">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perlamiga">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perlamiga">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perlamiga">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perlamiga">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perlamiga">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perlamiga">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perlamiga">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlamiga.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perlamiga">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perlamiga">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perlamiga">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perlamiga">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perlamiga">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perlamiga">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perlamiga">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perlamiga">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perlamiga">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perlamiga">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perlamiga">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perlamiga">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perlamiga">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perlamiga">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perlamiga">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perlamiga">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perlamiga">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perlamiga">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perlamiga">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perlamiga">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perlamiga">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perlamiga">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perlamiga">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perlamiga">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perlamiga">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perlamiga">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perlamiga">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perlamiga">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perlamiga">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perlamiga">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perlamiga">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perlamiga">5.35.1</a>
          <a class="dropdown-item active" href="perlamiga.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perlamiga.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perlamiga.html">perlamiga</a>
          <div id="more">
            (<a href="perlamiga.txt">source</a>,
            <a href="https://metacpan.org/pod/perlamiga">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#NOTE">NOTE</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#SYNOPSIS">SYNOPSIS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#DESCRIPTION">DESCRIPTION</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#Prerequisites-for-running-Perl-5.22.1-under-AmigaOS-4.1">Prerequisites for running Perl 5.22.1 under AmigaOS 4.1</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#Starting-Perl-programs-under-AmigaOS-4.1">Starting Perl programs under AmigaOS 4.1</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#Limitations-of-Perl-under-AmigaOS-4.1">Limitations of Perl under AmigaOS 4.1</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#INSTALLATION">INSTALLATION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#Amiga-Specific-Modules">Amiga Specific Modules</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#Amiga::ARexx">Amiga::ARexx</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#Amiga::Exec">Amiga::Exec</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#BUILDING">BUILDING</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#CHANGES">CHANGES</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perlamiga.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perlamiga.html#NAME">#</a>NAME</h1>

<p>perlamiga - Perl under AmigaOS 4.1</p>

<h1 id="NOTE"><a class="permalink" href="perlamiga.html#NOTE">#</a>NOTE</h1>

<p>This is a port of Perl 5.22.1, it is a fresh port and not in any way compatible with my previous ports of Perl 5.8 and 5.16.3. This means you will need to reinstall / rebuild any third party modules you have installed.</p>

<p>newlib.library version 53.28 or greater is required.</p>

<h1 id="SYNOPSIS"><a class="permalink" href="perlamiga.html#SYNOPSIS">#</a>SYNOPSIS</h1>

<p>Once perl is installed you can read this document in the following way</p>

<pre><code class="plaintext">sh -c &quot;perldoc perlamiga&quot;</code></pre>

<p>or you may read <i>as is</i>: either as <i>README.amiga</i>, or <i>pod/perlamiga.pod</i>.</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perlamiga.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<h2 id="Prerequisites-for-running-Perl-5.22.1-under-AmigaOS-4.1"><a class="permalink" href="perlamiga.html#Prerequisites-for-running-Perl-5.22.1-under-AmigaOS-4.1">#</a><a id="Prerequisites"></a>Prerequisites for running Perl 5.22.1 under AmigaOS 4.1</h2>

<dl>

<dt id="AmigaOS-4.1-update-6-with-all-updates-applied-as-of-9th-October-2013"><a class="permalink" href="perlamiga.html#AmigaOS-4.1-update-6-with-all-updates-applied-as-of-9th-October-2013">#</a><a id="AmigaOS"></a><b>AmigaOS 4.1 update 6 with all updates applied as of 9th October 2013</b></dt>
<dd>

<p>The most important of which is:</p>

</dd>
<dt id="newlib.library-version-53.28-or-greater"><a class="permalink" href="perlamiga.html#newlib.library-version-53.28-or-greater">#</a><a id="newlib"></a><b>newlib.library version 53.28 or greater</b></dt>
<dd>

</dd>
<dt id="AmigaOS-SDK"><a class="permalink" href="perlamiga.html#AmigaOS-SDK">#</a><a id="AmigaOS1"></a><b>AmigaOS SDK</b></dt>
<dd>

<p>Perl installs into the SDK directory structure and expects many of the build tools present in the SDK to be available. So for the best results install the SDK first.</p>

</dd>
<dt id="abc-shell"><a class="permalink" href="perlamiga.html#abc-shell">#</a><a id="abc"></a><b>abc-shell</b></dt>
<dd>

<p>If you do not have the SDK installed you must at least have abc-shell installed or some other suitable sh port. This is required to run external commands and should be available as &#39;sh&#39; in your path.</p>

</dd>
</dl>

<h2 id="Starting-Perl-programs-under-AmigaOS-4.1"><a class="permalink" href="perlamiga.html#Starting-Perl-programs-under-AmigaOS-4.1">#</a><a id="Starting"></a>Starting Perl programs under AmigaOS 4.1</h2>

<p>Perl may be run from the AmigaOS shell but for best results should be run under abc-shell. (abc-shell handles file globbing, pattern expansion, and sets up environment variables in the UN*Xy way that Perl expects.)</p>

<p>For example:</p>

<pre><code class="plaintext">New Shell process 10
10.AmigaOS4:&gt; sh
/AmigaOS4&gt;perl path:to/myprog arg1 arrg2 arg3</code></pre>

<p>Abc-shell can also launch programs via the #! syntax at the start of the program file, it&#39;s best use the form #!SDK:Local/C/perl so that the AmigaOS shell may also find perl in the same way. AmigaOS requires the script bit to be set for this to work</p>

<pre><code class="plaintext">10.AmigaOS4:&gt; sh
/AmigaOS4&gt;myprog arg1 arrg2 arg3</code></pre>

<h2 id="Limitations-of-Perl-under-AmigaOS-4.1"><a class="permalink" href="perlamiga.html#Limitations-of-Perl-under-AmigaOS-4.1">#</a><a id="Limitations"></a>Limitations of Perl under AmigaOS 4.1</h2>

<dl>

<dt id="Nested-Piped-programs-can-crash-when-run-from-older-abc-shells"><a class="permalink" href="perlamiga.html#Nested-Piped-programs-can-crash-when-run-from-older-abc-shells">#</a><a id="Nested"></a><b>Nested Piped programs can crash when run from older abc-shells</b></dt>
<dd>

<p>abc-shell version 53.2 has a bug that can cause crashes in the subprocesses used to run piped programs, if a later version is available you should install it instead.</p>

</dd>
<dt id="Incorrect-or-unexpected-command-line-unescaping"><a class="permalink" href="perlamiga.html#Incorrect-or-unexpected-command-line-unescaping">#</a><a id="Incorrect"></a><b>Incorrect or unexpected command line unescaping</b></dt>
<dd>

<p>newlib.library 53.30 and earlier incorrectly unescape slashed escape sequences e.g. \&quot; \n \t etc requiring unusual extra escaping.</p>

</dd>
<dt id="Starting-subprocesses-via-open-has-limitations"><a class="permalink" href="perlamiga.html#Starting-subprocesses-via-open-has-limitations">#</a><a id="Starting1"></a><b>Starting subprocesses via open has limitations</b></dt>
<dd>

<pre><code class="plaintext">open FH, &quot;command |&quot;</code></pre>

<p>Subprocesses started with open use a minimal popen() routine and therefore they do not return pids usable with waitpid etc.</p>

</dd>
<dt id="If-you-find-any-other-limitations-or-bugs-then-let-me-know."><a class="permalink" href="perlamiga.html#If-you-find-any-other-limitations-or-bugs-then-let-me-know.">#</a><a id="If"></a><a id="If-you-find-any-other-limitations-or-bugs-then-let-me-know"></a>If you find any other limitations or bugs then let me know.</dt>
<dd>

<p>Please report bugs in this version of perl to andy@broad.ology.org.uk in the first instance.</p>

</dd>
</dl>

<h1 id="INSTALLATION"><a class="permalink" href="perlamiga.html#INSTALLATION">#</a>INSTALLATION</h1>

<p>This guide assumes you have obtained a prebuilt archive from os4depot.net.</p>

<p>Unpack the main archive to a temporary location (RAM: is fine).</p>

<p>Execute the provided install script from shell or via its icon.</p>

<p>You <b>must not</b> attempt to install by hand.</p>

<p>Once installed you may delete the temporary archive.</p>

<p>This approach will preserve links in the installation without creating duplicate binaries.</p>

<p>If you have the earlier ports perl 5.16 or 5.8 installed you may like to rename your perl executable to perl516 or perl58 or something similar before the installation of 5.22.1, this will allow you to use both versions at the same time.</p>

<h1 id="Amiga-Specific-Modules"><a class="permalink" href="perlamiga.html#Amiga-Specific-Modules">#</a><a id="Amiga"></a>Amiga Specific Modules</h1>

<h2 id="Amiga::ARexx"><a class="permalink" href="perlamiga.html#Amiga::ARexx">#</a><a id="Amiga1"></a>Amiga::ARexx</h2>

<p>The Amiga::ARexx module allows you to easily create a perl based ARexx host or to send ARexx commands to other programs.</p>

<p>Try <code>perldoc Amiga::ARexx</code> for more info.</p>

<h2 id="Amiga::Exec"><a class="permalink" href="perlamiga.html#Amiga::Exec">#</a><a id="Amiga2"></a>Amiga::Exec</h2>

<p>The Amiga::Exec module introduces support for Wait().</p>

<p>Try <code>perldoc Amiga::Exec</code> for more info.</p>

<h1 id="BUILDING"><a class="permalink" href="perlamiga.html#BUILDING">#</a>BUILDING</h1>

<p>To build perl under AmigaOS from the patched sources you will need to have a recent version of the SDK. Version 53.29 is recommended, earlier versions will probably work too.</p>

<p>With the help of Jarkko Hietaniemi the Configure system has been tweaked to run under abc-shell so the recommend build process is as follows.</p>

<pre><code class="plaintext">stack 2000000
sh Configure -de
gmake</code></pre>

<p>This will build the default setup that installs under SDK:local/newlib/lib/</p>

<h1 id="CHANGES"><a class="permalink" href="perlamiga.html#CHANGES">#</a>CHANGES</h1>

<dl>

<dt id="August-2015"><a class="permalink" href="perlamiga.html#August-2015">#</a><a id="August"></a><b>August 2015</b></dt>
<dd>

<dl>

<dt id="Port-to-Perl-5.22"><a class="permalink" href="perlamiga.html#Port-to-Perl-5.22">#</a><a id="Port"></a>Port to Perl 5.22</dt>
<dd>

</dd>
<dt id="Add-handling-of-NIL:-to-afstat()"><a class="permalink" href="perlamiga.html#Add-handling-of-NIL:-to-afstat()">#</a><a id="Add"></a><a id="Add-handling-of-NIL:-to-afstat"></a>Add handling of NIL: to afstat()</dt>
<dd>

</dd>
<dt id="Fix-inheritance-of-environment-variables-by-subprocesses."><a class="permalink" href="perlamiga.html#Fix-inheritance-of-environment-variables-by-subprocesses.">#</a><a id="Fix"></a><a id="Fix-inheritance-of-environment-variables-by-subprocesses"></a>Fix inheritance of environment variables by subprocesses.</dt>
<dd>

</dd>
<dt id="Fix-exec,-and-exit-in-&quot;forked&quot;-subprocesses."><a class="permalink" href="perlamiga.html#Fix-exec,-and-exit-in-%22forked%22-subprocesses.">#</a><a id="Fix1"></a><a id="Fix-exec-and-exit-in-forked-subprocesses"></a>Fix exec, and exit in &quot;forked&quot; subprocesses.</dt>
<dd>

</dd>
<dt id="Fix-issue-with-newlib&#39;s-unlink,-which-could-cause-infinite-loops."><a class="permalink" href="perlamiga.html#Fix-issue-with-newlib&#39;s-unlink,-which-could-cause-infinite-loops.">#</a><a id="Fix2"></a><a id="Fix-issue-with-newlibs-unlink-which-could-cause-infinite-loops"></a>Fix issue with newlib&#39;s unlink, which could cause infinite loops.</dt>
<dd>

</dd>
<dt id="Add-flock()-emulation-using-IDOS-&gt;LockRecord-thanks-to-Tony-Cook-for-the-suggestion."><a class="permalink" href="perlamiga.html#Add-flock()-emulation-using-IDOS-%3ELockRecord-thanks-to-Tony-Cook-for-the-suggestion.">#</a><a id="Add1"></a><a id="Add-flock-emulation-using-IDOS-LockRecord-thanks-to-Tony-Cook-for-the-suggestion"></a>Add flock() emulation using IDOS-&gt;LockRecord thanks to Tony Cook for the suggestion.</dt>
<dd>

</dd>
<dt id="Fix-issue-where-kill-was-using-the-wrong-kind-of-process-ID"><a class="permalink" href="perlamiga.html#Fix-issue-where-kill-was-using-the-wrong-kind-of-process-ID">#</a><a id="Fix3"></a>Fix issue where kill was using the wrong kind of process ID</dt>
<dd>

</dd>
</dl>

</dd>
<dt id="27th-November-2013"><a class="permalink" href="perlamiga.html#27th-November-2013">#</a><a id="27th"></a><a id="th-November-2013"></a><b>27th November 2013</b></dt>
<dd>

<dl>

<dt id="Create-new-installation-system-based-on-installperl-links-and-Amiga-protection-bits-now-set-correctly."><a class="permalink" href="perlamiga.html#Create-new-installation-system-based-on-installperl-links-and-Amiga-protection-bits-now-set-correctly.">#</a><a id="Create"></a><a id="Create-new-installation-system-based-on-installperl-links-and-Amiga-protection-bits-now-set-correctly"></a>Create new installation system based on installperl links and Amiga protection bits now set correctly.</dt>
<dd>

</dd>
<dt id="Pod-now-defaults-to-text."><a class="permalink" href="perlamiga.html#Pod-now-defaults-to-text.">#</a><a id="Pod"></a><a id="Pod-now-defaults-to-text"></a>Pod now defaults to text.</dt>
<dd>

</dd>
<dt id="File::Spec-should-now-recognise-an-Amiga-style-absolute-path-as-well-as-an-Unix-style-one.-Relative-paths-must-always-be-Unix-style."><a class="permalink" href="perlamiga.html#File::Spec-should-now-recognise-an-Amiga-style-absolute-path-as-well-as-an-Unix-style-one.-Relative-paths-must-always-be-Unix-style.">#</a><a id="File"></a><a id="File::Spec-should-now-recognise-an-Amiga-style-absolute-path-as-well-as-an-Unix-style-one.-Relative-paths-must-always-be-Unix-style"></a>File::Spec should now recognise an Amiga style absolute path as well as an Unix style one. Relative paths must always be Unix style.</dt>
<dd>

</dd>
</dl>

</dd>
<dt id="20th-November-2013"><a class="permalink" href="perlamiga.html#20th-November-2013">#</a><a id="20th"></a><a id="th-November-20131"></a><b>20th November 2013</b></dt>
<dd>

<dl>

<dt id="Configured-to-use-SDK:Local/C/perl-to-start-standard-scripts"><a class="permalink" href="perlamiga.html#Configured-to-use-SDK:Local/C/perl-to-start-standard-scripts">#</a><a id="Configured"></a><a id="Configured-to-use-SDK:Local-C-perl-to-start-standard-scripts"></a>Configured to use SDK:Local/C/perl to start standard scripts</dt>
<dd>

</dd>
<dt id="Added-Amiga::Exec-module-with-support-for-Wait()-and-AmigaOS-signal-numbers."><a class="permalink" href="perlamiga.html#Added-Amiga::Exec-module-with-support-for-Wait()-and-AmigaOS-signal-numbers.">#</a><a id="Added"></a><a id="Added-Amiga::Exec-module-with-support-for-Wait-and-AmigaOS-signal-numbers"></a>Added Amiga::Exec module with support for Wait() and AmigaOS signal numbers.</dt>
<dd>

</dd>
</dl>

</dd>
<dt id="10th-October-13"><a class="permalink" href="perlamiga.html#10th-October-13">#</a><a id="10th"></a><a id="th-October-13"></a><b>10th October 13</b></dt>
<dd>

<p>First release of port to 5.16.3.</p>

</dd>
</dl>

<h1 id="SEE-ALSO"><a class="permalink" href="perlamiga.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>You like this port? See <a href="http://www.broad.ology.org.uk/amiga/">http://www.broad.ology.org.uk/amiga/</a> for how you can help.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
